import * as React from "react";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import Publish from "./Publish";
import Attention from "./Attention";
import Square from "./Square";
import PostDetail from "./PostDetail";
import store from '../../store/postindex'
const Stack = createNativeStackNavigator();
import { Provider } from 'react-redux';
export default function LoginLayout() {
  return (
    <Provider store={store}>

      <Stack.Navigator id={undefined} screenOptions={{ headerShown: false }}>
        <Stack.Screen name="publish" component={Publish} />
        <Stack.Screen name="attention" component={Attention} />
        <Stack.Screen name="square" component={Square} />
        <Stack.Screen name="PostDetail" component={PostDetail} />
      </Stack.Navigator>
    </Provider>
  )
}
